for i in range(1,10):
    j = 0
    while j < i:
        j += 1
        print("{}*{}={}".format(j, i, j * i),end=' ')
    print( )


